﻿namespace CoCoonCoreWM6
{
    public class Pixel
    {
        public byte Alpha { get; set; }

        public byte Red { get; set; }

        public byte Green { get; set; }

        public byte Blue { get; set; }

        public Pixel()
        {
            Alpha = 255;
            Red = 255;
            Green = 255;
            Blue = 255;
        }

        public Pixel(byte r, byte g, byte b)
        {
            Alpha = 255;
            Red = r;
            Green = g;
            Blue = b;
        }

        public override string ToString()
        {
            return string.Format("&h{0:X2}{1:X2}{2:X2}", Red, Green, Blue);
        }
    }
}
